package com.greendeliver.activities;

import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.widget.TabHost;

import com.example.test.R;
import com.greendeliver.activities.base.BaseTabActivity;

public class ServicesActivity extends BaseTabActivity {

	@Override
	protected void onCreate( Bundle savedInstanceState ) {
		super.onCreate( savedInstanceState );
		setFullscreen();
		setContentView( R.layout.activity_services );

		Log.d( "Bonjour", "1" );
		TabHost tabHost = getTabHost();
		Resources res = getResources();
		TabHost.TabSpec spec;
		Intent intent;

		intent = new Intent().setClass( this, AllRestaurantsActivity.class );
		spec = tabHost.newTabSpec( "Form" )
				.setIndicator( "Restaurants", res.getDrawable( R.drawable.restaurant ) ).setContent( intent );
		tabHost.addTab( spec );

		intent = new Intent().setClass( this, AllStoresActivity.class );
		spec = tabHost.newTabSpec( "Form" )
				.setIndicator( "Boutiques", res.getDrawable( R.drawable.store ) ).setContent( intent );
		tabHost.addTab( spec );

		tabHost.setCurrentTab( intent.getIntExtra( "tab_AllEventsActivity", 0 ) );
	}

}
